package com.SpringBoot.SpringBoot.config;

import com.SpringBoot.SpringBoot.bean.Person;
import com.SpringBoot.SpringBoot.bean.Pet;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author:liuwei
 * @creatdate:2022-05-18-15:49
 */
@Configuration
public class Myconfig {
	@Bean
	public Person person(){
		return new Person("name",18);
	}
	@Bean
	public Pet pet(){
		return new Pet("name");
	}
}
